90105: Function test xfi:tuples-in-tuple
Documentation
Owners
Name | Affiliation | Start | End | |
---|---|---|---|---|
Herm Fischer |
|
fischer@markv.com | 19-02-2008 at 00:00:00 |
Test Case Variations
V-01
Works for an instance with tuples.
Documentation
Inputs
- schema: facts-in-instance.xsd
- instance: tuple-instance.xml (DTS Discovery starting point) (ID=V01)
-
Function Call:
xfi:tuples-in-tuple(//concept:t1[@id eq 'i1'])
(against file V01)
Outputs
-
Result test:
count( $result ) eq 1 and local-name( $result ) eq 't1' and namespace-uri( $result ) eq 'http://xbrl.org/formula/conformance/example' and $result/@id eq 'i2'
V-02
Works for an instance with tuples.
Documentation
Inputs
- schema: facts-in-instance.xsd
- instance: tuple-instance.xml (DTS Discovery starting point) (ID=V02)
-
Function Call:
xfi:tuples-in-tuple(//concept:t1[@id eq 'i3'])
(against file V02)
Outputs
-
Result test:
count( $result ) eq 1 and local-name( $result ) eq 't1' and namespace-uri( $result ) eq 'http://xbrl.org/formula/conformance/example' and $result/@id eq 'i4'
V-03
Works for an instance with tuples.
Documentation
Inputs
- schema: facts-in-instance.xsd
- instance: tuple-instance.xml (DTS Discovery starting point) (ID=V03)
-
Function Call:
xfi:tuples-in-tuple(//concept:t1[@id eq 'i4'])
(against file V03)
Outputs
-
Result test:
count( $result ) eq 0
V-04
Wrong node to function
Documentation
Inputs
- schema: facts-in-instance.xsd
- instance: tuple-instance.xml (DTS Discovery starting point) (ID=V04)
-
Function Call:
xfi:tuples-in-tuple(//concept:c1[@id eq 'i9'])
(against file V04)
Outputs
- Error code: xqt-err:XPTY0004
Revisions
Name | On | Details |
---|---|---|
Herm Fischer | 30-01-2008 at 00:00:00 |
|